JavaScript

A5.u.math.conversionalternatives Method

Syntax

A5.u.math.conversion.alternatives(unit)

Arguments

unitstring

The unit to find alternatives to.

Returns

unitsarray

List of units the passed in unit can be converted to.

Description

Get a list of all alterative units that a given unit and be converted to.

Discussion

This method will return an array with all the units that a given unit of measurement can be converted to.

Example

var alts = A5.u.math.conversion.alternatives('km/h');
// alts = ["m/s","m/h","knot","ft/s"]